/**
 * Created by linxin on 2017/3/11.
 */

export default {
  getUser(states) {
    return states.info;
  },
  getUsername(states) {
    return states.info&&states.info.realname;
  },
  getAvatar(states){
    return states.info&&states.info.avatar||"";
  },
  getIntroduction(states) {
    return states.info&&states.info.introduction;
  },
  getRoles(states) {
    return states.info&&states.info.roles||[];
  },
  getAuthorId(states) {
    return states.authorId;
  },
};
